package com.yingxin.yxerp.module.activiti.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.yingxin.yx.framework.commons.activiti.ApprovalStatus;
import com.yingxin.yxerp.module.activiti.entity.ActivitiBizInfo;

import java.util.Collection;
import java.util.List;

/**
 * activiti biz 服务类
 * @author fanchao
 * @since 2022-02-19
 */

public interface IActivitiBizInfoService extends IService<ActivitiBizInfo> {

    List<ActivitiBizInfo> listByBizIds(Collection<String> bizIds);

    List<ActivitiBizInfo> listByProcessInstanceIds(Collection<String> processInstanceIds);

    ActivitiBizInfo getByProcessInstanceId(String processInstanceId);

    /**
     * 更新审核状体，和审核人信息
     */
    void updateApprovalStatus(String bizId, ApprovalStatus approvalStatus, String assignee, String currentAssignee);

}
